package com.master.demo.im.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 *  会话列表
 *
 * @author: Sport
 * @date: 2022-06-15
 * @version: 1.0.0
 * Copyright Ⓒ 2021 恒翔 Computer Corporation Limited All rights reserved.
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("im_session_list")
public class SessionList implements Serializable {

	private static final long serialVersionUID = 1L;

	/**
	 * 主键id
	 */
	@TableId(value = "id", type = IdType.AUTO)
	private Long id;

	/**
	 * 创建人
	 */
	private String createUser;

	/**
	 * 创建时间
	 */
	private LocalDateTime createTime;

	/**
	 * 会话编号
	 */
	private String number;

	/**
	 * 发送人
	 */
	private String sender;

	/**
	 * 接收人
	 */
	private String receiver;

	/**
	 * 状态
	 */
	private Integer status;

	/**
	 * 是否删除 0->未删除;1->已删除
	 */
	@TableLogic
	private Integer deleted;


}
